<template>
  <div class="app-container home">
    <div class="bg">
      
    </div>
  </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: "3.6.0",
    };
  },
  created(){
    // this.shua()
    if (this._isMobile()) {
          // alert("手机端");
          this.$router.replace('/ylogin');
        } else {
          // alert("pc端");
          // this.$router.replace('/');
        }
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    },
    shua(){
      location.reload();
    },
     _isMobile() {
              let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
              return flag;
            }
  },
  mounted(){
        
  },
};
</script>

<style scoped lang="scss">
.bg{
  width: 450px;
  height: 450px;
  background: url("../assets/images/shouye.png");
  background-size: 100% 100%; 
  margin: 0 auto;
}
.home{
  width: 100%;
  height: 850px;
  background: #f3f3f3;
}
</style>

